﻿<ul class="layui-nav layui-nav-tree" lay-filter="">
    <li class="layui-nav-item layui-nav-itemed">
        <a href="javascript:;"><i class="layui-icon layui-icon-list"></i> 系统管理</a>
        <dl class="layui-nav-child">
            @if (await Authorizer.AuthView(PermissionKeys.Category_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Category/Index');"><i class="layui-icon layui-icon-form cxuu-list-ico"></i> 登记类别</a></dd>
            }
        </dl>

        <dl class="layui-nav-child">
            @if (await Authorizer.AuthView(PermissionKeys.ContentCate_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/ContentCate/Index');"><i class="layui-icon layui-icon-form layui-icon-website"></i> 网站栏目</a></dd>
            }
        </dl>


        <dl class="layui-nav-child">
            @if (await Authorizer.AuthView(PermissionKeys.UserDept_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/UserDept/Index');"><i class="layui-icon layui-icon-group cxuu-list-ico"></i> 部门管理</a></dd>
            }
            @if (await Authorizer.AuthView(PermissionKeys.User_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/User/UserTree');"><i class="layui-icon layui-icon-friends cxuu-list-ico"></i> 用户管理</a></dd>
            }
            @if (await Authorizer.AuthView(PermissionKeys.UserPost_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/UserPost/Index');"><i class="layui-icon layui-icon-user cxuu-list-ico"></i> 岗位管理</a></dd>
            }
            @if (await Authorizer.AuthView(PermissionKeys.UserGroup_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/UserGroup/Index');"><i class="layui-icon layui-icon-username cxuu-list-ico"></i> 角色管理</a></dd>
            }
        </dl>

        <dl class="layui-nav-child">
            @if (await Authorizer.AuthView(PermissionKeys.Config_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Config/Index');"><i class="layui-icon layui-icon-util cxuu-list-ico"></i> 系统设置</a></dd>
            }
            @if (await Authorizer.AuthView(PermissionKeys.Cache_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Cache/Index');"><i class="layui-icon layui-icon-template cxuu-list-ico"></i> 缓存管理</a></dd>
            }

            @if (await Authorizer.AuthView(PermissionKeys.Attment_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Attment/Index');"><i class="layui-icon layui-icon-file cxuu-list-ico"></i> 上传管理</a></dd>
            }
        </dl>

        <dl class="layui-nav-child">
            @if (await Authorizer.AuthView(PermissionKeys.Log_Index))
            {
                <dd><a href="javascript:;" onclick="loadMain('/Admin/Log/Index');"><i class="layui-icon layui-icon-log cxuu-list-ico"></i> 数据日志</a></dd>
                <dd><a href="javascript:;" onclick="loadMain('/Admin/LogLogin/Index');"><i class="layui-icon layui-icon-log cxuu-list-ico"></i> 登录日志</a></dd>
            }
        </dl>
    </li>
</ul>
